package com.atguigu.bigdata.scala.chapter02

object Scala10_Transform {

    def main(args: Array[String]): Unit = {

        // TODO 数据类型
        var i : Int = 10
        var a : Byte = i.toByte
        var s : Short = i.toShort

        // Int => String
        val str = i.toString
        val str1 = "" + i

        // String => Int
        val str2 = "123"
        val i1 = str2.toInt
        println(i1)
    }
}
